package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //根据日期查询当前日期是否存在
    long findCountByOrderDate(Date orderDate);

    //修改可预约人数
    void updateNumberByOrderDate(OrderSetting orderSetting);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);

    //添加预约设置
    void addOrderSetting(OrderSetting orderSetting);

    //根据月份获取预约信息
    List<OrderSetting> getOrderSettingByMonth(Map map);

    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);


    public void dateDelete(String date);
}
